/*
 * @Date: 2024-11-18 15:07:16
 * @Author: LiSong
 * @LastEditors: LiSong
 * @LastEditTime: 2024-11-18 15:07:29
 * @Description: 区划管理相关接口
 */
import { defAxios as request } from '@/utils/http'


/**
 * 区划管理的API
 * @returns {Object} 定义的API
 */
export function useZoningApi() {
  return {
    refreshEleAdCache,
    deleteEleAd,
    updateEleAdStatus,
    saveEleAd,
    eleAdInfo
  }
}


/**
 * 刷新区划缓存
 *
 * @returns Proxy
 */
function refreshEleAdCache(params = {}) {
  return request({
    url: '/eleAd/refreshEleAdCache',
    method: 'post',
    data: params
  })
}

/**
 * 删除区划
 *
 * @returns Proxy
 */
function deleteEleAd(params = {}) {
  return request({
    url: '/eleAd/deleteEleAd',
    method: 'post',
    data: params
  })
}


/**
 * 启用、停用区划
 *
 * @returns Proxy
 */
function updateEleAdStatus(params = {}) {
  return request({
    url: '/eleAd/updateEleAdStatus',
    method: 'post',
    data: params
  })
}

/**
 * 保存区划
 *
 * @returns Proxy
 */
function saveEleAd(params = {}) {
  return request({
    url: '/eleAd/saveEleAd',
    method: 'post',
    data: params
  })
}

/**
 * 获取区划详情信息
 *
 * @returns Proxy
 */
function eleAdInfo(params = {}) {
  return request({
    url: '/eleAd/eleAdInfo',
    method: 'post',
    data: params
  })
}

